package com.sumer.psychology.blog.domain.model;

import com.sumer.psychology.common.domain.model.AbstractDomainEvent;
import com.sumer.psychology.common.domain.model.Author;

/**
 * 修改Blog
 * <p/>
 * User: zhenguang.zhu
 * Date: 2014/8/11
 * Time: 9:46
 */
public class BlogChangedEvent extends AbstractDomainEvent {
    private BlogId blogId;
    private String title;
    private String content;
    private Author author;

    public BlogChangedEvent(BlogId blogId, String title, String content, Author author) {
        super();
        this.blogId = blogId;
        this.title = title;
        this.content = content;
        this.author = authorFrom(author);
    }

    public String title() {
        return title;
    }

    public String content() {
        return content;
    }

    public BlogId blogId() {
        return blogId;
    }

    public Author author() {
        return author;
    }
}
